<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <#--定义变量  并显示-->
    <#assign s = "Hello ${user}!">
    ${s} <#-- Just to see what the value of s is -->
    <hr>
    ${user[2]}
    <hr>
    <#if user == "admin">
        管理员
    </#if>
    <hr>
    <#if num lt 12>
        ${num} 小于12
    </#if>
    <#if num gt 12>
        ${num} 大于12
    </#if>
    <hr>
    ${date?datetime}
</body>
</html>
